package com.hengpeng.itfin.domain.imprest;

import java.util.Map;

import com.hengpeng.itfin.service.ServiceFactory;
import com.hengpeng.itfinbase.persist.PaymentProvider;

public abstract class AbstractImprestProcessor implements ImprestProcessor
{
	public ServiceFactory serviceFactory;

	protected PaymentProvider provider;

	public static final String ALIPAY_CONFIG_PAGERETURNURL = "page_return_url";

	public static final String ALIPAY_CONFIG_SERVICERETURNURL = "service_return_url";

	public String page_return_url;

	public String service_notify_url;

	public Map<String, String> extConfigs;

	public AbstractImprestProcessor(ServiceFactory serviceFactory, PaymentProvider provider)
	{
		this.provider = provider;
		this.serviceFactory = serviceFactory;
		extConfigs = provider.getExtConfigs();
		page_return_url = extConfigs.get(ALIPAY_CONFIG_PAGERETURNURL);
		service_notify_url = extConfigs.get(ALIPAY_CONFIG_SERVICERETURNURL);
	}
}
